package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.DingtalkAttendanceSchedule;
import cn.topevery.garden.entity.query.DingtalkAttendanceScheduleQuery;
import cn.topevery.garden.entity.vo.DingtalkAttendanceScheduleVO;
import cn.topevery.garden.entity.vo.DingtalkWorkScheduleUserVO;
import cn.topevery.garden.entity.vo.DingtalkWorkScheduleVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author code-generate
 * @date 2021-09-02
 */
public interface DingtalkAttendanceScheduleDao extends BaseDao<DingtalkAttendanceSchedule> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<DingtalkAttendanceScheduleVO> listPage(DingtalkAttendanceScheduleQuery query);
    void truncate();
    DingtalkAttendanceSchedule getEntity(LocalDate workDay, String userId);

    LocalDate getMaxDate();

    List<Map<String, Object>> getSyncUser(LocalDate begin);

    DataPager<DingtalkWorkScheduleUserVO> findAllUserPage(int page, int pageSize, String name);

    List<DingtalkWorkScheduleVO> selectScheduleByDate(String date);
}
